package com.knowledge.graph.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 知识点节点和视频的关联实体
 * @author jiwenlong
 * @date 2023/11/22 20:38
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("node_and_video")
public class NodeAndVideo {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer videoId;

    private Integer nodeId;

    public NodeAndVideo(Integer videoId,Integer nodeId){
        this.videoId = videoId;
        this.nodeId = nodeId;
    }
}
